﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path=request.getContextPath();
	String msg=(String)request.getAttribute("msg");
%>


<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html;" charset="UTF-8">
    
    <link rel="stylesheet" type="text/css" href="<%=path %>/w/files/reset.css" media="all">
    <link rel="stylesheet" type="text/css" href="<%=path %>/w/files/m-commerce.css" media="all">
    <script type="text/javascript" src="<%=path %>/w/files/jQuery.js"></script>
    <script type="text/javascript" src="<%=path %>/w/files/swipe.js"></script>
    <script type="text/javascript" src="<%=path %>/w/files/jquery.alerts.js"></script>
    <!--禁止分享-->

<!--禁止分享-->   
    <link href="<%=path %>/w/files/jquery.alerts.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="<%=path %>/w/files/box.css">
    <script type="text/javascript" src="<%=path %>/w/files/jquery.artDialog.min.js"></script>
    
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <!-- Mobile Devices Support @begin -->
    
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <script type="text/javascript" src="<%=path %>/w/js/address.js"></script>
    <title>收货信息</title> 
</head>

<body>

<div class="wrap pdb60" id="model" data_type="4">

<form name="form" action="<%=path %>/w/cart!createorder.action" method="post">
    <ul class="address mt_10">
        <li><input type="text" id="name" class="input_sh" name="order1.name" placeholder="姓名" 
        	value="<s:property value="order1.name"/>"></li>
        <li>
            <select class="input_sh" id="province" name="order1.province" >
            </select>
        </li>

        <li>
            <select class="input_sh" id="city" name="order1.city" >
            </select>
        </li>

        <li>
            <select class="input_sh" id="county" name="order1.qu">
            </select>
        </li>
		
		<%--<li>
            <select class="input_sh" id="county" name="order1.userScore">
             	<option value="yes">使用积分</option>
             	<option value="no">不使用积分</option>
            </select>
        </li>--%>
        <li>
            <input type="text" id="address"  class="input_sh addressAddress" name="order1.address" 
            placeholder="详细地址" value="<s:property value="order1.address"/>">
        </li>

        <li>
            <input type="text" id="phone" value="<s:property value="order1.phone"/>" class="input_sh addressPhone" name="order1.phone" placeholder="联系电话,座机需填写区号">
        </li>
    </ul>
    <div class="order" id="beizhu">
        <div class="order_content">
            备注： <input type="text" maxlength="100" name="order1.beizhu" id="remark" value="<s:property value="order1.beizhu"/>" class="span02" style="width:80%;" placeholder="留言">
        </div>
    </div>
    
  <a href="javascript:void(0)" onclick="callpay()">
    <div class="btn_w">
        <div class="redbtn w100w" id="cartcreateorder" >
            确认提交
        </div>
    </div>
 </a>

   

<!-- 
    <input type="text" type="hidden" name="sid" value="${sid}"/>
    <input type="text" type="hidden" name="order.sid" value="${sid}"/>
    <input type="text" type="hidden" name="order.oid" value="${oid}"/>
    <input id="status" type="hidden" name="order.status" value="待付款"/>
    <input type="text" type="hidden" name="order.price" value="${price}"/>
    
  -->
    
 
 </form> 
   </div>
   
<script language="javascript"> setup()</script>



<script type="text/javascript">

  	function callpay(){
         
           
  	var name= document.getElementById("name").value;
  	 var province=document.getElementById("province").value;
  	 var city=document.getElementById("city").value;
  	 var qu=document.getElementById("county").value;
  	 var address=document.getElementById("address").value;
  	 var phone=document.getElementById("phone").value;
  	 
  	 if(name!=""&&province!=""&&city!=""&&qu!=""&&address!=""&&phone!=""){
  	 
  	    document.form.submit();
		
			}else{
			
			alert("请完善你的相关信息");
		}
		
		}
  </script>
 
 <script type="text/javascript">
 	if("<%=msg%>"!="null"){
		alert("<%=msg%>");
 	}
 </script>
 
</body>
</html>


<div style="display:none">
<script language="javascript"  type="text/javascript" src="http://js.users.51.la/17561955.js"></script>
<noscript><a href="http://www.51.la/?17561955" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17561955.asp" style="border:none" /></a></noscript></div>